//
//  Request.swift
//  物料商行
//
//  Created by HaoDong Hong on 2017/7/22.
//  Copyright © 2017年 HaoDong Hong. All rights reserved.
//

import Foundation
import SwiftyJSON
import Alamofire


protocol RequestProtocol {
    var host: String { get }
    var path: String { get }
    var method: HTTPMethod { get }
    var bodyParams: Parameters { get }
    var fullURL: URL { get }
}

extension RequestProtocol {
    var host: String { return "http://fengke.net:8081/" }
    var method: HTTPMethod { return .post }
    //var header: [String: String]? { return nil }
}

